﻿using NHibernate;
using NHibernate.Cfg;

namespace Crowler.Model.CoreComponents.DataAccess
{
    public interface IUnitOfWorkFactory
    {
        IUnitOfWork Create();
        ISession CurrentSession { get; set; }
        Configuration Configuration { get; set; }
        ISessionFactory SessionFactory { get; }
        void DisposeUnitOfWork(IUnitOfWork unitOfWorkImplementor);
    }
}
